package com.ruoyi.custom.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 会员管理对象 member
 *
 * @author ruoyi
 * @date 2024-04-08
 */
public class Member2 extends BaseEntity
{
	private static final long serialVersionUID = 1L;

	/** 主键，唯一标识会员 */
	@Excel(name = "会员编码")
	private Long id;

	/** 会员电话号码，唯一标识会员的一种方式 */
	@Excel(name = "会员电话号码")
	private String phone;

	/** 会员姓名 */
	@Excel(name = "会员姓名")
	private String name;

	/** 会员等级 */
	@Excel(name = "会员等级")
	private String level;

	/** 最后一次消费时间，记录会员最近一次消费的时间 */
	@JsonFormat(pattern = "yyyy-MM-dd")
	@Excel(name = "最后一次消费时间", width = 30, dateFormat = "yyyy-MM-dd")
	private Date lastConsumptionTime;

	/** 会员余额，保留2位小数，以保证金额的精确性 */
	@Excel(name = "会员余额，保留2位小数")
	private BigDecimal balance;

	/** 赘余字段 */
	@Excel(name = "累计充值金额")
	private String keyOne;

	public void setId(Long id)
	{
		this.id = id;
	}

	public Long getId()
	{
		return id;
	}
	public void setPhone(String phone)
	{
		this.phone = phone;
	}

	public String getPhone()
	{
		return phone;
	}
	public void setName(String name)
	{
		this.name = name;
	}

	public String getName()
	{
		return name;
	}
	public void setLevel(String level)
	{
		this.level = level;
	}

	public String getLevel()
	{
		return level;
	}
	public void setLastConsumptionTime(Date lastConsumptionTime)
	{
		this.lastConsumptionTime = lastConsumptionTime;
	}

	public Date getLastConsumptionTime()
	{
		return lastConsumptionTime;
	}
	public void setBalance(BigDecimal balance)
	{
		this.balance = balance;
	}

	public BigDecimal getBalance()
	{
		return balance;
	}
	public void setKeyOne(String keyOne)
	{
		this.keyOne = keyOne;
	}

	public String getKeyOne()
	{
		return keyOne;
	}

	@Override
	public String toString() {
		return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
				.append("id", getId())
				.append("phone", getPhone())
				.append("name", getName())
				.append("level", getLevel())
				.append("createTime", getCreateTime())
				.append("lastConsumptionTime", getLastConsumptionTime())
				.append("balance", getBalance())
				.append("keyOne", getKeyOne())
				.toString();
	}
}
